<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/11/19
  Time: 20:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <link href="/qimingxing/css/admin.css" type="text/css" rel="stylesheet" />

    <link rel="StyleSheet" href="dtree/dtree.css" type="text/css" />

    <script type="text/javascript" src="dtree/dtree.js"></script>

    <script language="JavaScript">
        function expand(el)
        {
            childobj = document.getElementById("child" + el);

            if (childobj.style.display == 'none')
            {
                childobj.style.display = 'block';
            }
            else
            {
                childobj.style.display = 'none';
            }
            return;
        }
    </script>
</head>
<body>

   <%-- <table height="100%" cellspacing=0 cellpadding=0 width=170    border=0>
        <tr>
            <td valign=top align=middle>


                <table cellspacing=0 cellpadding=0 width="100%" border=0>
                    <tr>
                        <td height=10></td>
                    </tr>
                </table>

            </td>
            <td width=1 bgcolor=#d1e6f7></td>
        </tr>
    </table>--%>
    <script type="text/javascript">
        <!--
        d = new dTree('d');
        d.config.target = "main_right";
        d.add(0,-1,'部门管理');
        <c:forEach items="${depts}" var="dep">
            d.add(${dep.id},${dep.PId},'${dep.name}','${pageContext.request.contextPath}/resource/demo1/detail?id=${dep.id}');
        </c:forEach>

        document.write(d);
        //-->
    </script>

</body>
</html>
